package temp.lho.lws.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import temp.lho.lws.mapper.IBaseMapper;
import temp.lho.lws.mapper.IUserMapper;
import temp.lho.lws.pojo.TbUser;
import temp.lho.lws.service.IUserService;

import java.util.List;

/**
 * @author liuws
 * @create 2020-07-05 15:31
 */
@Service("userService")
public class UserServiceImpl extends BaseServiceImpl<TbUser> implements IUserService {

    @Autowired
    private IUserMapper userMapper;

    @Override
    protected IBaseMapper<TbUser> baseMapper() {
        return userMapper;
    }

    @Override
    public int add(TbUser tbUser) {
        return 0;
    }

    @Override
    public int delete(Integer id) {
        return 0;
    }

    @Override
    public int update(TbUser tbUser) {
        return 0;
    }

    @Override
    public List<TbUser> findAll() {
        return userMapper.findAll();
    }

    @Override
    public TbUser findById(Integer id) {
        return null;
    }
}
